<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    p{
        font-size: 20px;
    }
    /* 首字母变大 */
    span{
        font-size: 50px;
    }
    /* 
            伪元素，表示一些特殊数的不真实存在的元素（特殊的位置
                伪元素的使用 :: 开头

                ::first-letter 表示第一个字母
                ::first-line   表示第一行
                ::selection    表示选中内容
            重要
                ::before    元素的最开始
                ::after     元素的最后
                    -before和after必须结合content属性来使用
                    - 而且不能选中
    */

    div::after{
        content: 'hh';
        color: red;
    }
    div::before{
        content: 'rnrn';
        color: green;
    }

    p::first-letter{
        font-size: 50px;
    }
    p::first-line{
        background-color: turquoise;    /*表示背景颜色*/ 
    }
    p::selection{
        background-color: yellow;
    }

</style>
<body>
    <div>hello hello bit</div>
    <p>
        <span>L</span> orem ipsum dolor sit amet consectetur adipisicing elit. A voluptatibus reiciendis fugiat commodi repellendus ad voluptatem perferendis rem accusantium consequatur. Cum dolorem aut provident quod nihil ipsa nulla, eveniet vel.
    </p>
    <p>
        iorem ipsum dolor sit amet consectetur adipisicing elit. A voluptatibus reiciendis fugiat commodi repellendus ad voluptatem perferendis rem accusantium consequatur. Cum dolorem aut provident quod nihil ipsa nulla, eveniet vel.
    </p>


</body>
</html>